
FROM nginx
LABEL maintainer="kunling.wu"
ENV RUN_USER nginx 
ENV RUN_GROUP nginx 
ENV DATA_DIR web/dist
ENV LOG_DIR /data/log/nginx
RUN mkdir  /data/log/nginx -p 
RUN chown nginx.nginx -R /data/log/nginx
ADD dist /data/web
ADD nginx.conf /etc/nginx/nginx.conf
ADD test.lua /test.lua
ADD default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 81
EXPOSE 82
CMD ["nginx", "-g", "daemon off;"]
